<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>对战投票</title>
    <link rel="stylesheet" type="text/css"
          th:href="@{https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/toastr.css}">
    <script type="text/javascript" th:src="@{https://code.jquery.com/jquery-3.3.1.slim.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery-3.6.0.min.js}"></script>
    <script type="text/javascript"
            th:src="@{https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/toastr.js}"></script>
</head>
<style>
    .table {
        margin: auto;
    }

    .toast-center-center {
        top: 50%;
        left: 50%;
        margin-top: -25px;
        margin-left: -150px;
    }
</style>
<body>
<div th:replace="home/index :: navbar"></div>
<div style="padding-top: 120px">
    <div th:each="match:${match}">
        <div class="jumbotron">
            <h1 class="display-3" th:text="${match.matchName}"></h1>
            <p class="lead" th:text="${match.matchAddress}"></p>
            <hr class="my-4">
            <p th:text="${match.matchTime}"></p>
            <p class="lead">
                <a class="btn btn-outline-primary btn-lg"
                   th:href="@{battle/(matchId=${match.matchId})}" role="button">维护比赛</a>
                <a class="btn btn-outline-primary btn-lg"
                   style="margin-left: 60px"
                   th:href="@{top/(matchId=${match.matchId})}" role="button">查看排行</a>
            </p>
        </div>
    </div>
</div>
</body>
<script th:inline="javascript">
</script>
</html>